package com.project.housesalesystem.controller;

import com.project.housesalesystem.bean.Users;
import com.project.housesalesystem.common.Results;
import com.project.housesalesystem.service.UsersService;
import lombok.RequiredArgsConstructor;
import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 用户登录
 *
 */
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
@Slf4j
public class LoginController {
    @Resource
    private UsersService userService;
    /*
     *用户登录
     */
//    @PostMapping("/login")
//    public Results login(@RequestBody Users user) {
//        Users result=userService.getUserFormData(user);
//        return Results.ok(result);
//    }

}
